// pages/user_info/my_order/my_order.js
const {http,PageContent} = require('../../../../utils/util.js');
var util = require('../../../../utils/util.js');
var api = require('../../../../config/api.js');
var app = require('../../../../app.js');
Page({

    /**
     * 页面的初始数据
     */
    data: {
      img_door:"/static/imgs/cars/door.png",
      img_url: "/static/imgs/cars/zw_hui.png",
      img_url_01: "/static/imgs/cars/zw_hui.png",
      img_url_02: "/static/imgs/cars/zw_hui.png" ,
      img_url_03: "/static/imgs/cars/zw_hui.png" ,
      img_url_04: "/static/imgs/cars/zw_hui.png" ,
      img_url_05: "/static/imgs/cars/zw_hui.png" ,
      img_url_06: "/static/imgs/cars/zw_hui.png" ,
      img_url_07: "/static/imgs/cars/zw_hui.png" ,
      img_url_08: "/static/imgs/cars/zw_hui.png" ,
      img_url_09: "/static/imgs/cars/zw_hui.png" ,
      img_url_10: "/static/imgs/cars/zw_hui.png" ,
      img_url_11: "/static/imgs/cars/zw_hui.png" ,
      img_url_12: "/static/imgs/cars/zw_hui.png" ,
      img_url_13: "/static/imgs/cars/zw_hui.png" ,
      img_url_14: "/static/imgs/cars/zw_hui.png" ,
      img_url_15: "/static/imgs/cars/zw_hui.png" ,
      img_url_16: "/static/imgs/cars/zw_hui.png" ,
      img_url_17: "/static/imgs/cars/zw_hui.png" ,
      img_url_18: "/static/imgs/cars/zw_hui.png" ,
      img_url_19: "/static/imgs/cars/zw_hui.png" ,
      img_url_20: "/static/imgs/cars/zw_hui.png" ,
      img_url_21: "/static/imgs/cars/zw_hui.png" ,
      img_url_22: "/static/imgs/cars/zw_hui.png" ,
      img_url_23: "/static/imgs/cars/zw_hui.png" ,
      img_url_24: "/static/imgs/cars/zw_hui.png" ,
      img_url_25: "/static/imgs/cars/zw_hui.png",
      img_url_26: "/static/imgs/cars/zw_hui.png",
      img_url_27: "/static/imgs/cars/zw_hui.png",
      img_url_28: "/static/imgs/cars/zw_hui.png",
      img_url_29: "/static/imgs/cars/zw_hui.png",
      img_url_30: "/static/imgs/cars/zw_hui.png", 
      img_url_31: "/static/imgs/cars/zw_hui.png",
      img_url_32: "/static/imgs/cars/zw_hui.png",
      img_url_33: "/static/imgs/cars/zw_hui.png",
      img_url_34: "/static/imgs/cars/zw_hui.png",
      img_url_35: "/static/imgs/cars/zw_hui.png",
      img_url_36: "/static/imgs/cars/zw_hui.png",
      img_url_37: "/static/imgs/cars/zw_hui.png",
      img_url_38: "/static/imgs/cars/zw_hui.png",
      img_url_39: "/static/imgs/cars/zw_hui.png",
      img_url_40: "/static/imgs/cars/zw_hui.png", 
      img_url_41: "/static/imgs/cars/zw_hui.png",
      img_url_42: "/static/imgs/cars/zw_hui.png",
      img_url_43: "/static/imgs/cars/zw_hui.png",
      img_url_44: "/static/imgs/cars/zw_hui.png",
      img_url_45: "/static/imgs/cars/zw_hui.png",
      img_url_46: "/static/imgs/cars/zw_hui.png",
      img_url_47: "/static/imgs/cars/zw_hui.png",
      img_url_48: "/static/imgs/cars/zw_hui.png",
      img_url_49: "/static/imgs/cars/zw_hui.png",
      img_url_50: "/static/imgs/cars/zw_hui.png",
      img_url_51: "/static/imgs/cars/zw_hui.png",
      img_url_52: "/static/imgs/cars/zw_hui.png",
      img_url_53: "/static/imgs/cars/zw_hui.png",
      img_url_st_01:0,
      img_url_st_02:0,
      img_url_st_03:0,
      img_url_st_04:0,
      img_url_st_05:0,
      img_url_st_06:0,
      img_url_st_07:0,
      img_url_st_08:0,
      img_url_st_09:0,
      img_url_st_10: 0,
      img_url_st_11: 0,
      img_url_st_12: 0,
      img_url_st_13: 0,
      img_url_st_14: 0,
      img_url_st_15: 0,
      img_url_st_16: 0, 
      img_url_st_17: 0,
      img_url_st_18: 0,
      img_url_st_19: 0,
      img_url_st_20: 0,
      img_url_st_21: 0,
      img_url_st_22: 0,
      img_url_st_23: 0,
      img_url_st_24: 0,
      img_url_st_25: 0,
      img_url_st_26: 0,
      img_url_st_27: 0,
      img_url_st_28: 0,
      img_url_st_29: 0,
      img_url_st_30: 0, 
      img_url_st_31: 0,
      img_url_st_32: 0,
      img_url_st_33: 0,
      img_url_st_34: 0,
      img_url_st_35: 0,
      img_url_st_36: 0,
      img_url_st_37: 0,
      img_url_st_38: 0,
      img_url_st_39: 0,
      img_url_st_40: 0, 
      img_url_st_41: 0,
      img_url_st_42: 0,
      img_url_st_43: 0,
      img_url_st_44: 0,
      img_url_st_45: 0,
      img_url_st_46: 0,
      img_url_st_47: 0,
      img_url_st_48: 0,
      img_url_st_49: 0,
      img_url_st_50: 0,
      img_url_st_51: 0,
      img_url_st_52: 0,
      img_url_st_53: 0,
      selectSetNumberArr:[],
      selectedSeatList: [],
      is_bindtap_01: 'auto',
      is_bindtap_02: 'auto',
      is_bindtap_03: 'auto',
      is_bindtap_04: 'auto',
      is_bindtap_05: 'auto',
      is_bindtap_06: 'auto',
      is_bindtap_07: 'auto',
      is_bindtap_08: 'auto',
      is_bindtap_09: 'auto',
      is_bindtap_10: 'auto',
      is_bindtap_11: 'auto',
      is_bindtap_12: 'auto',
      is_bindtap_13: 'auto',
      is_bindtap_14: 'auto',
      is_bindtap_15: 'auto',
      is_bindtap_16: 'auto',
      is_bindtap_17: 'auto',
      is_bindtap_18: 'auto',
      is_bindtap_19: 'auto',
      is_bindtap_20: 'auto',
      is_bindtap_21: 'auto',
      is_bindtap_22: 'auto',
      is_bindtap_23: 'auto',
      is_bindtap_24: 'auto',
      is_bindtap_25: 'auto',
      is_bindtap_26: 'auto',
      is_bindtap_27: 'auto',
      is_bindtap_28: 'auto',
      is_bindtap_29: 'auto',
      is_bindtap_30: 'auto',
      is_bindtap_31: 'auto',
      is_bindtap_32: 'auto',
      is_bindtap_33: 'auto',
      is_bindtap_34: 'auto',
      is_bindtap_35: 'auto',
      is_bindtap_36: 'auto',
      is_bindtap_37: 'auto',
      is_bindtap_38: 'auto',
      is_bindtap_39: 'auto',
      is_bindtap_40: 'auto',
      is_bindtap_41: 'auto',
      is_bindtap_42: 'auto',
      is_bindtap_43: 'auto',
      is_bindtap_44: 'auto',
      is_bindtap_45: 'auto',
      is_bindtap_46: 'auto',
      is_bindtap_47: 'auto',
      is_bindtap_48: 'auto',
      is_bindtap_49: 'auto',
      is_bindtap_50: 'auto',
      is_bindtap_51: 'auto',
      is_bindtap_52: 'auto',
      is_bindtap_53: 'auto'

    },
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
      var _this = this;
      var campaignId = options.campaignId;
      var carSeatId = options.carSeatId;
      var url = api.availableSeat + campaignId + "/" + carSeatId;
      var data = {};
      util.request(url, data, 'get').then(function (res) {
        var seatList = res.responseBody;//已选的座位数组
        var seatListArr = [];
        //正式
        _this.setData({
           selectedSeatList: seatList
        });
        //测试
        // _this.setData({
        //   selectedSeatList: [1, 3, 5, 10, 21, 29, 43]
        // });
        //渲染已选的座位为红色
        _this.selectedSeatSetRed(_this.data.selectedSeatList);
      })
    },
  selectedSeatSetRed: function (data) {
    var _this = this;
    for (var i = 0; i < data.length; i++) {
      for (var j = 0; j < 53; j++) {
        if (data[i] == j + 1) {
          if ((j + 1) == 1) {
            _this.setData({
              img_url_01: "/static/imgs/cars/zw_hong.png",
              img_url_st_01: 2,
              is_bindtap_01: 'none'
            })
          }
          if ((j + 1) == 2) {
            _this.setData({
              img_url_02: "/static/imgs/cars/zw_hong.png",
              img_url_st_02: 2,
              is_bindtap_02: 'none'
            })
          }
          if ((j + 1) == 3) {
            _this.setData({
              img_url_03: "/static/imgs/cars/zw_hong.png",
              img_url_st_03: 2,
              is_bindtap_03: 'none'
            })
          }
          if ((j + 1) == 4) {
            _this.setData({
              img_url_04: "/static/imgs/cars/zw_hong.png",
              img_url_st_04: 2,
              is_bindtap_04: 'none'
            })
          }
          if ((j + 1) == 5) {
            _this.setData({
              img_url_05: "/static/imgs/cars/zw_hong.png",
              img_url_st_05: 2,
              is_bindtap_05: 'none'
            })
          }
          if ((j + 1) == 6) {
            _this.setData({
              img_url_06: "/static/imgs/cars/zw_hong.png",
              img_url_st_06: 2,
              is_bindtap_06: 'none'
            })
          }
          if ((j + 1) == 7) {
            _this.setData({
              img_url_07: "/static/imgs/cars/zw_hong.png",
              img_url_st_07: 2,
              is_bindtap_07: 'none'
            })
          }
          if ((j + 1) == 8) {
            _this.setData({
              img_url_08: "/static/imgs/cars/zw_hong.png",
              img_url_st_08: 2,
              is_bindtap_08: 'none'
            })
          }
          if ((j + 1) == 9) {
            _this.setData({
              img_url_09: "/static/imgs/cars/zw_hong.png",
              img_url_st_09: 2,
              is_bindtap_09: 'none'
            })
          }
          if ((j + 1) == 10) {
            _this.setData({
              img_url_10: "/static/imgs/cars/zw_hong.png",
              img_url_st_10: 2,
              is_bindtap_10: 'none'
            })
          }
          if ((j + 1) == 11) {
            _this.setData({
              img_url_11: "/static/imgs/cars/zw_hong.png",
              img_url_st_11: 2,
              is_bindtap_11: 'none'
            })
          }
          if ((j + 1) == 12) {
            _this.setData({
              img_url_01: "/static/imgs/cars/zw_hong.png",
              img_url_st_12: 2,
              is_bindtap_12: 'none'
            })
          }
          if ((j + 1) == 12) {
            _this.setData({
              img_url_12: "/static/imgs/cars/zw_hong.png",
              img_url_st_12: 2,
              is_bindtap_12: 'none'
            })
          }
          if ((j + 1) == 13) {
            _this.setData({
              img_url_13: "/static/imgs/cars/zw_hong.png",
              img_url_st_13: 2,
              is_bindtap_13: 'none'
            })
          }
          if ((j + 1) == 14) {
            _this.setData({
              img_url_14: "/static/imgs/cars/zw_hong.png",
              img_url_st_14: 2,
              is_bindtap_14: 'none'
            })
          }
          if ((j + 1) == 15) {
            _this.setData({
              img_url_15: "/static/imgs/cars/zw_hong.png",
              img_url_st_15: 2,
              is_bindtap_15: 'none'
            })
          }
          if ((j + 1) == 16) {
            _this.setData({
              img_url_16: "/static/imgs/cars/zw_hong.png",
              img_url_st_16: 2,
              is_bindtap_16: 'none'
            })
          }
          if ((j + 1) == 17) {
            _this.setData({
              img_url_17: "/static/imgs/cars/zw_hong.png",
              img_url_st_17: 2,
              is_bindtap_17: 'none'
            })
          }
          if ((j + 1) == 18) {
            _this.setData({
              img_url_18: "/static/imgs/cars/zw_hong.png",
              img_url_st_18: 2,
              is_bindtap_18: 'none'
            })
          }
          if ((j + 1) == 19) {
            _this.setData({
              img_url_19: "/static/imgs/cars/zw_hong.png",
              img_url_st_19: 2,
              is_bindtap_19: 'none'
            })
          }
          if ((j + 1) == 20) {
            _this.setData({
              img_url_20: "/static/imgs/cars/zw_hong.png",
              img_url_st_20: 2,
              is_bindtap_20: 'none'
            })
          }
          if ((j + 1) == 21) {
            _this.setData({
              img_url_21: "/static/imgs/cars/zw_hong.png",
              img_url_st_21: 2,
              is_bindtap_21: 'none'
            })
          }
          if ((j + 1) == 22) {
            _this.setData({
              img_url_22: "/static/imgs/cars/zw_hong.png",
              img_url_st_22: 2,
              is_bindtap_22: 'none'
            })
          }
          if ((j + 1) == 23) {
            _this.setData({
              img_url_23: "/static/imgs/cars/zw_hong.png",
              img_url_st_23: 2,
              is_bindtap_23: 'none'
            })
          }
          if ((j + 1) == 24) {
            _this.setData({
              img_url_24: "/static/imgs/cars/zw_hong.png",
              img_url_st_24: 2,
              is_bindtap_24: 'none'
            })
          }
          if ((j + 1) == 25) {
            _this.setData({
              img_url_25: "/static/imgs/cars/zw_hong.png",
              img_url_st_25: 2,
              is_bindtap_25: 'none'
            })
          }
          if ((j + 1) == 26) {
            _this.setData({
              img_url_26: "/static/imgs/cars/zw_hong.png",
              img_url_st_26: 2,
              is_bindtap_26: 'none'
            })
          }
          if ((j + 1) == 27) {
            _this.setData({
              img_url_27: "/static/imgs/cars/zw_hong.png",
              img_url_st_27: 2,
              is_bindtap_27: 'none'
            })
          }
          if ((j + 1) == 28) {
            _this.setData({
              img_url_28: "/static/imgs/cars/zw_hong.png",
              img_url_st_28: 2,
              is_bindtap_28: 'none'
            })
          }
          if ((j + 1) == 29) {
            _this.setData({
              img_url_29: "/static/imgs/cars/zw_hong.png",
              img_url_st_29: 2,
              is_bindtap_29: 'none'
            })
          }
          if ((j + 1) == 30) {
            _this.setData({
              img_url_30: "/static/imgs/cars/zw_hong.png",
              img_url_st_30: 2,
              is_bindtap_30: 'none'
            })
          }
          if ((j + 1) == 31) {
            _this.setData({
              img_url_31: "/static/imgs/cars/zw_hong.png",
              img_url_st_31: 2,
              is_bindtap_31: 'none'
            })
          }
          if ((j + 1) == 32) {
            _this.setData({
              img_url_32: "/static/imgs/cars/zw_hong.png",
              img_url_st_32: 2,
              is_bindtap_32: 'none'
            })
          }
          if ((j + 1) == 33) {
            _this.setData({
              img_url_33: "/static/imgs/cars/zw_hong.png",
              img_url_st_33: 2,
              is_bindtap_33: 'none'
            })
          }
          if ((j + 1) == 34) {
            _this.setData({
              img_url_34: "/static/imgs/cars/zw_hong.png",
              img_url_st_34: 2,
              is_bindtap_34: 'none'
            })
          }
          if ((j + 1) == 35) {
            _this.setData({
              img_url_35: "/static/imgs/cars/zw_hong.png",
              img_url_st_35: 2,
              is_bindtap_35: 'none'
            })
          }
          if ((j + 1) == 36) {
            _this.setData({
              img_url_36: "/static/imgs/cars/zw_hong.png",
              img_url_st_36: 2,
              is_bindtap_36: 'none'
            })
          }
          if ((j + 1) == 37) {
            _this.setData({
              img_url_37: "/static/imgs/cars/zw_hong.png",
              img_url_st_37: 2,
              is_bindtap_37: 'none'
            })
          }
          if ((j + 1) == 38) {
            _this.setData({
              img_url_38: "/static/imgs/cars/zw_hong.png",
              img_url_st_38: 2,
              is_bindtap_38: 'none'
            })
          }
          if ((j + 1) == 39) {
            _this.setData({
              img_url_39: "/static/imgs/cars/zw_hong.png",
              img_url_st_39: 2,
              is_bindtap_39: 'none'
            })
          }
          if ((j + 1) == 40) {
            _this.setData({
              img_url_40: "/static/imgs/cars/zw_hong.png",
              img_url_st_40: 2,
              is_bindtap_40: 'none'
            })
          } if ((j + 1) == 41) {
            _this.setData({
              img_url_41: "/static/imgs/cars/zw_hong.png",
              img_url_st_41: 2,
              is_bindtap_41: 'none'
            })
          }
          if ((j + 1) == 42) {
            _this.setData({
              img_url_42: "/static/imgs/cars/zw_hong.png",
              img_url_st_42: 2,
              is_bindtap_42: 'none'
            })
          }
          if ((j + 1) == 43) {
            _this.setData({
              img_url_43: "/static/imgs/cars/zw_hong.png",
              img_url_st_43: 2,
              is_bindtap_43: 'none'
            })
          }
          if ((j + 1) == 44) {
            _this.setData({
              img_url_44: "/static/imgs/cars/zw_hong.png",
              img_url_st_44: 2,
              is_bindtap_44: 'none'
            })
          }
          if ((j + 1) == 45) {
            _this.setData({
              img_url_45: "/static/imgs/cars/zw_hong.png",
              img_url_st_45: 2,
              is_bindtap_45: 'none'
            })
          }
          if ((j + 1) == 46) {
            _this.setData({
              img_url_46: "/static/imgs/cars/zw_hong.png",
              img_url_st_46: 2,
              is_bindtap_46: 'none'
            })
          }
          if ((j + 1) == 47) {
            _this.setData({
              img_url_47: "/static/imgs/cars/zw_hong.png",
              img_url_st_47: 2,
              is_bindtap_47: 'none'
            })
          }
          if ((j + 1) == 48) {
            _this.setData({
              img_url_48: "/static/imgs/cars/zw_hong.png",
              img_url_st_48: 2,
              is_bindtap_48: 'none'
            })
          }
          if ((j + 1) == 49) {
            _this.setData({
              img_url_49: "/static/imgs/cars/zw_hong.png",
              img_url_st_49: 2,
              is_bindtap_49: 'none'
            })
          }
          if ((j + 1) == 50) {
            _this.setData({
              img_url_50: "/static/imgs/cars/zw_hong.png",
              img_url_st_50: 2,
              is_bindtap_50: 'none'
            })
          } if ((j + 1) == 51) {
            _this.setData({
              img_url_51: "/static/imgs/cars/zw_hong.png",
              img_url_st_51: 2,
              is_bindtap_51: 'none'
            })
          }
          if ((j + 1) == 52) {
            _this.setData({
              img_url_52: "/static/imgs/cars/zw_hong.png",
              img_url_st_52: 2,
              is_bindtap_52: 'none'
            })
          }
          if ((j + 1) == 53) {
            _this.setData({
              img_url_53: "/static/imgs/cars/zw_hong.png",
              img_url_st_53: 2,
              is_bindtap_53: 'none'
            })
          }


        }
      }
    }


  },
  select_weizhi_01: function (params) {
    var that = this;
    if (this.data.img_url_st_01 == 0) {
      this.setData({
        img_url_01: "/static/imgs/cars/zw_lu.png",
        img_url_st_01: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_01: "/static/imgs/cars/zw_hui.png",

        img_url_st_01: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_02: function (params) {
    var that = this;
    if (this.data.img_url_st_02 == 0) {
      this.setData({
        img_url_02: "/static/imgs/cars/zw_lu.png",
        img_url_st_02: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_02: "/static/imgs/cars/zw_hui.png",
        img_url_st_02: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_03: function (params) {
    var that = this;
    if (this.data.img_url_st_03 == 0) {
      this.setData({
        img_url_03: "/static/imgs/cars/zw_lu.png",
        img_url_st_03: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_03: "/static/imgs/cars/zw_hui.png",
        img_url_st_03: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_04: function (params) {
    var that = this;
    if (this.data.img_url_st_04 == 0) {
      this.setData({
        img_url_04: "/static/imgs/cars/zw_lu.png",
        img_url_st_04: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_04: "/static/imgs/cars/zw_hui.png",
        img_url_st_04: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_05: function (params) {
    var that = this;
    if (this.data.img_url_st_05 == 0) {
      this.setData({
        img_url_05: "/static/imgs/cars/zw_lu.png",
        img_url_st_05: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_05: "/static/imgs/cars/zw_hui.png",
        img_url_st_05: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_06: function (params) {
    var that = this;
    if (this.data.img_url_st_06 == 0) {
      this.setData({
        img_url_06: "/static/imgs/cars/zw_lu.png",
        img_url_st_06: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_06: "/static/imgs/cars/zw_hui.png",
        img_url_st_06: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_07: function (params) {
    var that = this;
    if (this.data.img_url_st_07 == 0) {
      this.setData({
        img_url_07: "/static/imgs/cars/zw_lu.png",
        img_url_st_07: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_07: "/static/imgs/cars/zw_hui.png",
        img_url_st_07: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_08: function (params) {
    var that = this;
    if (this.data.img_url_st_08 == 0) {
      this.setData({
        img_url_08: "/static/imgs/cars/zw_lu.png",
        img_url_st_08: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_08: "/static/imgs/cars/zw_hui.png",
        img_url_st_08: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
    console.log(that.data.selectSetNumberArr);
  },
  select_weizhi_09: function (params) {
    var that = this;
    if (this.data.img_url_st_09 == 0) {
      this.setData({
        img_url_09: "/static/imgs/cars/zw_lu.png",
        img_url_st_09: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_09: "/static/imgs/cars/zw_hui.png",
        img_url_st_09: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
    console.log(that.data.selectSetNumberArr);
  },
  select_weizhi_10: function (params) {
    var that = this;
    if (this.data.img_url_st_10 == 0) {
      this.setData({
        img_url_10: "/static/imgs/cars/zw_lu.png",
        img_url_st_10: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_10: "/static/imgs/cars/zw_hui.png",
        img_url_st_10: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_11: function (params) {
    var that = this;
    if (this.data.img_url_st_11 == 0) {
      this.setData({
        img_url_11: "/static/imgs/cars/zw_lu.png",
        img_url_st_11: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_11: "/static/imgs/cars/zw_hui.png",
        img_url_st_11: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_12: function (params) {
    var that = this;
    if (this.data.img_url_st_12 == 0) {
      this.setData({
        img_url_12: "/static/imgs/cars/zw_lu.png",
        img_url_st_12: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_12: "/static/imgs/cars/zw_hui.png",
        img_url_st_12: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_13: function (params) {
    var that = this;
    if (this.data.img_url_st_13 == 0) {
      this.setData({
        img_url_13: "/static/imgs/cars/zw_lu.png",
        img_url_st_13: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_13: "/static/imgs/cars/zw_hui.png",
        img_url_st_13: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_14: function (params) {
    var that = this;
    if (this.data.img_url_st_14 == 0) {
      this.setData({
        img_url_14: "/static/imgs/cars/zw_lu.png",
        img_url_st_14: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_14: "/static/imgs/cars/zw_hui.png",
        img_url_st_14: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_15: function (params) {
    var that = this;
    if (this.data.img_url_st_15 == 0) {
      this.setData({
        img_url_15: "/static/imgs/cars/zw_lu.png",
        img_url_st_15: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_15: "/static/imgs/cars/zw_hui.png",
        img_url_st_15: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_16: function (params) {
    var that = this;
    if (this.data.img_url_st_16 == 0) {
      this.setData({
        img_url_16: "/static/imgs/cars/zw_lu.png",
        img_url_st_16: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_16: "/static/imgs/cars/zw_hui.png",
        img_url_st_16: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_17: function (params) {
    var that = this;
    if (this.data.img_url_st_17 == 0) {
      this.setData({
        img_url_17: "/static/imgs/cars/zw_lu.png",
        img_url_st_17: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_17: "/static/imgs/cars/zw_hui.png",
        img_url_st_17: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_18: function (params) {
    var that = this;
    if (this.data.img_url_st_18 == 0) {
      this.setData({
        img_url_18: "/static/imgs/cars/zw_lu.png",
        img_url_st_18: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_18: "/static/imgs/cars/zw_hui.png",
        img_url_st_18: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_19: function (params) {
    var that = this;
    if (this.data.img_url_st_19 == 0) {
      this.setData({
        img_url_19: "/static/imgs/cars/zw_lu.png",
        img_url_st_19: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_19: "/static/imgs/cars/zw_hui.png",
        img_url_st_19: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_20: function (params) {
    var that = this;
    if (this.data.img_url_st_20 == 0) {
      this.setData({
        img_url_20: "/static/imgs/cars/zw_lu.png",
        img_url_st_20: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_20: "/static/imgs/cars/zw_hui.png",
        img_url_st_20: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_21: function (params) {
    var that = this;
    if (this.data.img_url_st_21 == 0) {
      this.setData({
        img_url_21: "/static/imgs/cars/zw_lu.png",
        img_url_st_21: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_21: "/static/imgs/cars/zw_hui.png",
        img_url_st_21: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_22: function (params) {
    var that = this;
    if (this.data.img_url_st_22 == 0) {
      this.setData({
        img_url_22: "/static/imgs/cars/zw_lu.png",
        img_url_st_22: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_22: "/static/imgs/cars/zw_hui.png",
        img_url_st_22: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_23: function (params) {
    var that = this;
    if (this.data.img_url_st_23 == 0) {
      this.setData({
        img_url_23: "/static/imgs/cars/zw_lu.png",
        img_url_st_23: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_23: "/static/imgs/cars/zw_hui.png",
        img_url_st_23: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_24: function (params) {
    var that = this;
    if (this.data.img_url_st_24 == 0) {
      this.setData({
        img_url_24: "/static/imgs/cars/zw_lu.png",
        img_url_st_24: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_24: "/static/imgs/cars/zw_hui.png",
        img_url_st_24: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_25: function (params) {
    var that = this;
    if (this.data.img_url_st_25 == 0) {
      this.setData({
        img_url_25: "/static/imgs/cars/zw_lu.png",
        img_url_st_25: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_25: "/static/imgs/cars/zw_hui.png",
        img_url_st_25: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_26: function (params) {
    var that = this;
    if (this.data.img_url_st_26 == 0) {
      this.setData({
        img_url_26: "/static/imgs/cars/zw_lu.png",
        img_url_st_26: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_26: "/static/imgs/cars/zw_hui.png",
        img_url_st_26: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_27: function (params) {
    var that = this;
    if (this.data.img_url_st_27 == 0) {
      this.setData({
        img_url_27: "/static/imgs/cars/zw_lu.png",
        img_url_st_27: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_27: "/static/imgs/cars/zw_hui.png",
        img_url_st_27: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_28: function (params) {
    var that = this;
    if (this.data.img_url_st_28 == 0) {
      this.setData({
        img_url_28: "/static/imgs/cars/zw_lu.png",
        img_url_st_28: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_28: "/static/imgs/cars/zw_hui.png",
        img_url_st_28: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_29: function (params) {
    var that = this;
    if (this.data.img_url_st_29 == 0) {
      this.setData({
        img_url_29: "/static/imgs/cars/zw_lu.png",
        img_url_st_29: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_29: "/static/imgs/cars/zw_hui.png",
        img_url_st_29: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_30: function (params) {
    var that = this;
    if (this.data.img_url_st_30 == 0) {
      this.setData({
        img_url_30: "/static/imgs/cars/zw_lu.png",
        img_url_st_30: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_30: "/static/imgs/cars/zw_hui.png",
        img_url_st_30: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_31: function (params) {
    var that = this;
    if (this.data.img_url_st_31 == 0) {
      this.setData({
        img_url_31: "/static/imgs/cars/zw_lu.png",
        img_url_st_31: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_31: "/static/imgs/cars/zw_hui.png",
        img_url_st_31: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_32: function (params) {
    var that = this;
    if (this.data.img_url_st_32 == 0) {
      this.setData({
        img_url_32: "/static/imgs/cars/zw_lu.png",
        img_url_st_32: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_32: "/static/imgs/cars/zw_hui.png",
        img_url_st_32: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_33: function (params) {
    var that = this;
    if (this.data.img_url_st_33 == 0) {
      this.setData({
        img_url_33: "/static/imgs/cars/zw_lu.png",
        img_url_st_33: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_33: "/static/imgs/cars/zw_hui.png",
        img_url_st_33: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_34: function (params) {
    var that = this;
    if (this.data.img_url_st_34 == 0) {
      this.setData({
        img_url_34: "/static/imgs/cars/zw_lu.png",
        img_url_st_34: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_34: "/static/imgs/cars/zw_hui.png",
        img_url_st_34: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_35: function (params) {
    var that = this;
    if (this.data.img_url_st_35 == 0) {
      this.setData({
        img_url_35: "/static/imgs/cars/zw_lu.png",
        img_url_st_35: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_35: "/static/imgs/cars/zw_hui.png",
        img_url_st_35: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_36: function (params) {
    var that = this;
    if (this.data.img_url_st_36 == 0) {
      this.setData({
        img_url_36: "/static/imgs/cars/zw_lu.png",
        img_url_st_36: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_36: "/static/imgs/cars/zw_hui.png",
        img_url_st_36: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_37: function (params) {
    var that = this;
    if (this.data.img_url_st_37 == 0) {
      this.setData({
        img_url_37: "/static/imgs/cars/zw_lu.png",
        img_url_st_37: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_37: "/static/imgs/cars/zw_hui.png",
        img_url_st_37: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_38: function (params) {
    var that = this;
    if (this.data.img_url_st_38 == 0) {
      this.setData({
        img_url_38: "/static/imgs/cars/zw_lu.png",
        img_url_st_38: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_38: "/static/imgs/cars/zw_hui.png",
        img_url_st_38: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_39: function (params) {
    var that = this;
    if (this.data.img_url_st_39 == 0) {
      this.setData({
        img_url_39: "/static/imgs/cars/zw_lu.png",
        img_url_st_39: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_39: "/static/imgs/cars/zw_hui.png",
        img_url_st_39: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_40: function (params) {
    var that = this;
    if (this.data.img_url_st_40 == 0) {
      this.setData({
        img_url_40: "/static/imgs/cars/zw_lu.png",
        img_url_st_40: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_40: "/static/imgs/cars/zw_hui.png",
        img_url_st_40: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_41: function (params) {
    var that = this;
    if (this.data.img_url_st_41 == 0) {
      this.setData({
        img_url_41: "/static/imgs/cars/zw_lu.png",
        img_url_st_41: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_41: "/static/imgs/cars/zw_hui.png",
        img_url_st_41: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_42: function (params) {
    var that = this;
    if (this.data.img_url_st_42 == 0) {
      this.setData({
        img_url_42: "/static/imgs/cars/zw_lu.png",
        img_url_st_42: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_42: "/static/imgs/cars/zw_hui.png",
        img_url_st_42: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_43: function (params) {
    var that = this;
    if (this.data.img_url_st_43 == 0) {
      this.setData({
        img_url_43: "/static/imgs/cars/zw_lu.png",
        img_url_st_43: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_43: "/static/imgs/cars/zw_hui.png",
        img_url_st_43: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_44: function (params) {
    var that = this;
    if (this.data.img_url_st_44 == 0) {
      this.setData({
        img_url_44: "/static/imgs/cars/zw_lu.png",
        img_url_st_44: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_44: "/static/imgs/cars/zw_hui.png",
        img_url_st_44: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_45: function (params) {
    var that = this;
    if (this.data.img_url_st_45 == 0) {
      this.setData({
        img_url_45: "/static/imgs/cars/zw_lu.png",
        img_url_st_45: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_45: "/static/imgs/cars/zw_hui.png",
        img_url_st_45: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_46: function (params) {
    var that = this;
    if (this.data.img_url_st_46 == 0) {
      this.setData({
        img_url_46: "/static/imgs/cars/zw_lu.png",
        img_url_st_46: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_46: "/static/imgs/cars/zw_hui.png",
        img_url_st_46: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_47: function (params) {
    var that = this;
    if (this.data.img_url_st_47 == 0) {
      this.setData({
        img_url_47: "/static/imgs/cars/zw_lu.png",
        img_url_st_47: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_47: "/static/imgs/cars/zw_hui.png",
        img_url_st_47: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_48: function (params) {
    var that = this;
    if (this.data.img_url_st_48 == 0) {
      this.setData({
        img_url_48: "/static/imgs/cars/zw_lu.png",
        img_url_st_48: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_48: "/static/imgs/cars/zw_hui.png",
        img_url_st_48: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_49: function (params) {
    var that = this;
    if (this.data.img_url_st_49 == 0) {
      this.setData({
        img_url_49: "/static/imgs/cars/zw_lu.png",
        img_url_st_49: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_49: "/static/imgs/cars/zw_hui.png",
        img_url_st_49: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }

  },
  select_weizhi_50: function (params) {
    var that = this;
    if (this.data.img_url_st_50 == 0) {
      this.setData({
        img_url_50: "/static/imgs/cars/zw_lu.png",
        img_url_st_50: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_50: "/static/imgs/cars/zw_hui.png",
        img_url_st_50: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_51: function (params) {
    var that = this;
    if (this.data.img_url_st_51 == 0) {
      this.setData({
        img_url_51: "/static/imgs/cars/zw_lu.png",
        img_url_st_51: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_51: "/static/imgs/cars/zw_hui.png",
        img_url_st_51: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_52: function (params) {
    var that = this;
    if (this.data.img_url_st_52 == 0) {
      this.setData({
        img_url_52: "/static/imgs/cars/zw_lu.png",
        img_url_st_52: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_52: "/static/imgs/cars/zw_hui.png",
        img_url_st_52: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  select_weizhi_53: function (params) {
    var that = this;
    if (this.data.img_url_st_53 == 0) {
      this.setData({
        img_url_53: "/static/imgs/cars/zw_lu.png",
        img_url_st_53: 1
      })
      that.data.selectSetNumberArr.push(params.currentTarget.id);
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
      //返回下单
      that.back_order_page(that.data.selectSetNumberArr.pop());
    } else {
      this.setData({
        img_url_53: "/static/imgs/cars/zw_hui.png",
        img_url_st_53: 0
      })
      for (var i = 0; i < that.data.selectSetNumberArr.length; i++) {
        if (that.data.selectSetNumberArr[i] == params.currentTarget.id) {
          that.data.selectSetNumberArr.splice(i, 1);
        }
      }
      this.setData({
        selectSetNumberArr: that.data.selectSetNumberArr
      })
    }
  },
  back_order_page: function (e) {
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2];  //上一个页面
    //直接调用上一个页面对象的setData()方法，把数据存到上一个页面
    // var preSeatNumArr = prevPage.data.seatNum;
    // preSeatNumArr.push(e);
    prevPage.setData({
      seatNum: e
    });
    wx.navigateBack({
      delta: 1
    })
  }
});